package com.java2_24;

import java.util.ArrayList;

public class Card {
    private String name;
    private static ArrayList<String> list = new ArrayList<>();

    //对静态容器初始化
    static {
        String[] number = {"3","4","5","6","7","8","9","10","J","Q","K","A","2"};
        String[] color = {"♣","♦","♠","♥"};
        for (int i = 0; i < number.length; i++) {
            for (int j = 0; j < color.length; j++) {
                String zuHe = color[j] + number[i];
                list.add(zuHe);
            }
        }
        list.add("小🃏");
        list.add("大🃏");
//        String[][] card = {
//                {"3","4","5","6","7","8","9","10","J","Q","K","A","2"},
//        };
//        String[] color = {"♣","♦","♠","♥"};
//        card[1] = color;
//        for (int i = 0; i < card.length; i++) {



    }

    public Card(){

    }

    public Card(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static ArrayList<String> getList() {
        return list;
    }

    public static void setList(ArrayList<String> list) {
        Card.list = list;
    }
}
